package com.education.online.feign;


import com.github.pagehelper.PageInfo;
import com.education.common.pojo.LCatalogMenu;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "welco-service")
public interface CatalogFeign {

    @RequestMapping(value = "sCatalog/SelectCatalogList",method = RequestMethod.GET)
    public PageInfo selectCatalogList(@RequestParam(value = "pageNum", required = true)Integer pageNum,
                                      @RequestParam(value = "pageSize", required = true)Integer pageSize);


    @RequestMapping(value = "sCatalog/SelectCatalogMenuList",method = RequestMethod.GET)
    public List<LCatalogMenu> SelectCatalogMenuList(@RequestParam(value = "menuId", required = true)Integer menuId);
}
